﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace Web_HengliSeed.Sys_Manage
{
    public partial class M_CompanyTender : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ClassFile.Function.CheckState();
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            txt_CompanyTender.Value = BLL.CompanyInfo.GetCompanyTender().ToString();
        }

        protected void BtnSave_Click(object sender, EventArgs e)
        {
            StringBuilder CompanyMes = new StringBuilder(txt_CompanyTender.Value.Trim());
            if (BLL.CompanyInfo.UpdateCompanyTender(CompanyMes))
            {
                Common.ShowMessage.Show(Page, "Suess", "信息保存成功...");
            }
            else
            {
                Common.ShowMessage.Show(Page, "Suess", "信息保存失败，请重试或联系技术人员...");
            }
        }
    }
}
